
const {ccclass, property} = cc._decorator;
import supMount from "../../../sup/supMount";
@ccclass
export default class O extends supMount {
    @property({type:cc.Sprite,tooltip:"显示图片"})
    sprite:cc.Sprite=null;
    @property({type:cc.SpriteFrame,tooltip:"所有图片"})
    frames:cc.SpriteFrame[]=[];
 
    start(){
        //初始化图片
        let mod = this.getModule(null);
        let img = mod.img();
        this.sprite.spriteFrame = this.frames[img];
    }

}
